﻿using Book.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Book.IRepositories
{
    public interface IMenuRepository
    {
        List<MenuEntity> GetMenuJson();
        List<MenuEntity> GetMenuByPId(string id);
        MenuEntity GetOneMenuById(string id);
        //string GetTreeJson();
        List<MenuEntity> GetTreeJson();
        bool DeleteMenu(string id);
        void AddMenu1(MenuEntity menu);
        void AddMenu(string name, string ename, int template, string parentid);
        void UpdateMenu(string name, string ename, int template, string id);
        void UpdateOrder(string id, string pid, double order);
    }
    
}
